// dlg.txt

//Mk edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 55;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You warily enter the ruins of the tower. The dragon is in here somewhere. Not on this floor, though. The corridors are narrow and the ceilings are low.";
	text2 = "You listen carefully. You hear scrapes and hisses in the darkness. There are tracks in the snow at your feet, left by a wide variety of creatures. The dragon keeps servants down here, to fetch food and tend to its needs.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "This hall is full of piles of supplies. Fresh supplies. You look at the seals on the barrels and crates. A lot of this stuff was stolen from Haven.";
	text2 = "The Ro rebels recently started bringing supplies to the dragon.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "There is a wide vertical shaft extending up the entire height of the tower. There is one floor fifty feet above you. The hole extends down about sixty feet to an enormous basement.";
	text2 = "The walls are too smooth and icy for you to climb them, but the dragon can use this shaft to leap up and down its tower.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "__";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The three dragon images are still only half-awake, but the magic of the tower is still protecting them.";
	text2 = "They suddenly start to shimmer again. The illusionary forms fly madly around the room, sometimes even passing through you. Then they stabilize. The three Soloras are standing where they were before, but something has changed.";
	code =
		set_dialogue_pic(864); //dragon
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "You have managed to deal severe wounds to Solora. The dragon is now fully awake. His ancient eyes are alert and full of rage. _I have not felt this alive in a long time. I should have hunted Haven long before now!_";
	text2 = "He waves a claw. The two illusions disappear. _You are a worthy foe, [P] of Haven. I grant you a privilege. You may face me, Lord of Dragons, in my lair!_";
	text3 = "And then he leaps into his pit.";
	code =
		set_dialogue_pic(864); //dragon
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "Solora stands tall before you. All traces of age and lassitude are gone. The mighty dragon smiles at you, baring his teeth. The bones of his victims are scattered all around you.";
	text2 = "_I call my curses! Let them rain upon you! I will hunt you down, and I will devour you. Then your Queen will use her failing strength to hunt me, and I will know joy! I will live like a true dragon!_";
	text3 = "Solora lunges forward. Vague forms begin to coalesce into being above his magic circles.";
	code =
		set_dialogue_pic(864); //dragon
	break;
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Solora roars with pain and rage. He runs to the shaft, attempting to leap up it. However, his strength is fading and his wings are torn. He can't get altitude. He falls back down to the basement.";
	text2 = "He spins toward you and snarls. _So this is the end? This is death? I think not. Haven is failing. We all see it! The real end of your empire starts now, with your death!_";
	code =
		set_dialogue_pic(864); //dragon
	break;

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "Solora realizes that he is lost. He makes one more desperate leap, trying to claw his way back up to the shaft to freedom. Instead, he leaps up and crashes to the floor a pathetic heap.";
	text2 = "You close in on him, weapon drawn. _No,_ he hisses. _I will not serve again. I will not be in a zoo. I will not be a plaything. I have only one choice left to me. I will end._";
	text3 = "He rests his head on the floor and takes a deep breath. You advance, ready to continue the battle. Then you realize that Solora is no longer moving. The will of this creature was great. He chose to die. The tower is yours.";
	code =
		set_dialogue_pic(864); //dragon
	break;

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "An enormous, blue dragon is lying curled up in the corner, half-asleep. He is an ancient creature. He seems lost to exhaustion, but you can sense his power. As you get closer, frost starts to form on your armor.";
	text2 = "When you get close, his eyes open a crack. He groans and slowly, painfully starts to uncurl himself. _One moment,_ he rasps. _I expected you. I am Solora, and I will greet you soon._";
	code =
		sf(55,14,0);
		sf(55,15,4);
		sf(55,16,1);
		set_dialogue_pic(864); //dragon
		
		spawn_creature(5519);
		set_summon_level(5519,2);
		spawn_creature(5520);
		set_summon_level(5520,2);
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Greetings, dragon._";
	text1 = "_Greetingsss to you, little human of the Ro._ Solora engages in a long stretch and struggles to get his eyes open. _It hasss been a long time. Long time waiting. I am ready soon. We will begin negotiationsss._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Stay back, foul creature!_";
	text1 = "Solora seems confused. _I called to you, you choose to come. You Ro are not so foolish._";
	text2 = "Solora engages in a long stretch and struggles to get his eyes open. _Do not panic. I am eager to aid you. We will begin negotiationsss._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Back up.";
	text1 = "You back up slowly, the ice crunching under you feet. _Are you going? Ssstop._ Solora engages in a long stretch and struggles to get his eyes open. _It hasss been a long time. Long time waiting. I am ready soon. We will begin negotiationsss._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Negotiations?_";
	text1 = "_You Ro pestered and pestered me, for yearsss. At lassst, you brought your army._ Solora lets out a long yawn. _You are showing will. I will help you. For the right price, I will help you destroy the warriorsss of Haven._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_Wait. What?_";
	text1 = "Solora wipes the back of a massive claw across his eyes, trying to get them open all the way. _Haven hasss too much control. Isss too dangerous and unpredictable. It isss time for them to go the way of all other conquerorsss in our land._";
	text2 = "He starts to focus his ancient eyes upon you. _For the right termsss, I will fight beside you, Rebel Ro._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_You should look closer._";
	text1 = "Solora cranes his neck and stretches in close. Finally, his eyes open all the way. The dragon lurches back. The tower grows even colder.";
	text2 = "_Intruder! Who are you? You are ... a Havenite!_ He sees the insignia on your shoulder. _The [P], here, in my lair._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_I am [P] [N] of the Empire of Haven._";
	text1 = "_The [P]? Of Haven? Ahsssss! You come here. You invade my lair. One final insult before the end._";

begintalknode;
	state = 13;
	nextstate = 16;
	condition = 1;
	question = "Run.";
	text1 = "You turn and run, but Solora spreads his wings wide. The chamber fills with wind, throwing you back. _You're going nowhere, little coward. We will not turn down this easy victory!_";
	
begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_You are aiding the rebels against us?_";
	text1 = "_Yessss! We are done with you in our land. When you were strong and careful, we hated you, but we couldn't drive you out. Now that your queen isss failing and your leadersss are uselessss? Now isss the time!_";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Why do you want to drive Haven out?_";
	text1 = "_Haven would control usss. Haven says what I can and can't do, what I can and can't hunt. When I was young and had a long life ahead of me, I could wait._";
	text2 = "_Now? Now I am old, and I have no time. I am powerful. I am a God among my kind. I will end my yearsss as king of this peak!_";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_Perhaps Haven can make a better offer._";
	text1 = "_No. You have paid me great wealth over the yearsss. My hoard is huge now. All I want now isss to be free!_";
	text2 = "_You will make me richer now. I will have all of your wealth! I will feed off Haven in my final centuries._ He spreads his wings wide and roars.";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_Opposing Haven is a fatal error._";
	text1 = "_I am old. So very old. One day, I will die. I have chosen to die opposing you. Hunting Haven will give me joy and excitement in my final centuries!_";
	text2 = "He spreads his wings wide and roars.";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I'd better go and leave you to your negotiations, then._";
	text1 = "_Oh, no!_ He laughs. _Haven's time in the Rokaj has ended. I have chosen to die opposing you. Hunting Haven will give me joy and excitement in my final centuries!_";
	text2 = "He spreads his wings wide and roars.";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "Defend myself.";
	text1 = "Solora lurches toward you. He is still moving slowly. The ice in his veins hasn't thawed yet. He is still moving slowly.";
	text2 = "However, the enchantments he has placed on his tower come to his aid. Solora starts to shimmer. He begins to look shadowy and indistinct.";
	text3 = "Then Solora is not alone. Two more copies of him appear in the other two circles. They are also shadowy, as if they aren't quite real. The three dragons begin to stalk you.";
	action = END_TALK;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				